<!-- 搜索框组件 -->
<template>
  <div class="search">
    <i class="iconfont">&#xe600;</i>
    <input type="text" :placeholder="msg" class="search-input">
  </div>
</template>

<script>
//composition
export default {
  name: 'searchBar',
  props:['msg']
}
</script>

<style scoped lang="scss">
.search {
  width: 100%;
  height: 32px;
  background: #F5F5F5;
  border-radius: 16px;
  color: #b7b7b7;
  display: flex;
  align-items: center;
  padding-right: 16px;

  .iconfont {
    margin: 0 12px 0 16px;
    font-size: 14px;
    transform: translate3d(0px, 1px, 0px);
  }

  &-input {
    flex: auto;
    height: 32px;
    background: none;
  }

  &-input::placeholder {
    color: #b7b7b7;
    font-size: 14px;
  }
}</style>
